<template>
	<view>
		<view class="boxes">
			<text>复制链接分享到朋友圈或者分享给朋友，他们充值您有丰厚的佣金哦</text>
			<image src="../../../static/img/a5.png" mode=""></image>
		</view>
		<view class="boxes">
			<view>{{urls}}</view>
			<view @click="copy" class="btn" hover-class="other-button-hover">复制链接</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				urls: "https://wwwm.xiaoai123.cn/#/?vi=4259&appid=1"
			}
		},
		methods: {
			copy() {
				uni.setClipboardData({
					data: this.urls,
					success: function() {
						uni.showToast({
							title: '复制成功'
						})
					}
				});
			}
		}
	}
</script>

<style scoped lang="scss">
	.boxes {
		background: #fff;
		margin: 20upx;
		padding: 20upx;
		line-height: 60upx;
		border-radius: 10upx;

		image {
			width: 47upx;
			height: 51upx;
			margin-bottom: -8upx;
		}

		.btn {
			background: #FC6CA7;
			text-align: center;
			width: 240upx;
			margin: 10upx auto;
			color: #fff;
			border-radius: 10upx;
		}
	}
</style>
